<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Newton Dynamics: dThread Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo_php.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Newton Dynamics
   &#160;<span id="projectnumber">4.00</span>
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.svg"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classd_thread.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classd_thread-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">dThread Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for dThread:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classd_thread.png" usemap="#dThread_map" alt=""/>
  <map id="dThread_map" name="dThread_map">
<area href="classd_semaphore.html" title="Generic counting semaphore for thread synchronization." alt="dSemaphore" shape="rect" coords="0,56,203,80"/>
<area href="classd_atomic.html" alt="dAtomic&lt; bool &gt;" shape="rect" coords="213,56,416,80"/>
<area href="classd_thread_pool.html" alt="dThreadPool" shape="rect" coords="319,168,522,192"/>
<area href="classnd_scene.html" alt="ndScene" shape="rect" coords="319,224,522,248"/>
<area href="classnd_scene_mixed.html" alt="ndSceneMixed" shape="rect" coords="319,280,522,304"/>
<area href="classnd_world_scene.html" alt="ndWorldScene&lt; ndSceneMixed &gt;" shape="rect" coords="319,336,522,360"/>
<area href="classnd_world_mixed_scene.html" alt="ndWorldMixedScene" shape="rect" coords="213,392,416,416"/>
<area href="classnd_world_segregated_scene.html" alt="ndWorldSegregatedScene" shape="rect" coords="426,392,629,416"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a701bf18d8f073c62b6606f61fdee98fa"><td class="memItemLeft" align="right" valign="top"><a id="a701bf18d8f073c62b6606f61fdee98fa"></a>
D_CORE_API void&#160;</td><td class="memItemRight" valign="bottom"><b>SetName</b> (const char *const name)</td></tr>
<tr class="separator:a701bf18d8f073c62b6606f61fdee98fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4955edb678930f64d17bb7fbf680e37"><td class="memItemLeft" align="right" valign="top"><a id="ae4955edb678930f64d17bb7fbf680e37"></a>
D_CORE_API void&#160;</td><td class="memItemRight" valign="bottom"><b>Finish</b> ()</td></tr>
<tr class="separator:ae4955edb678930f64d17bb7fbf680e37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5597391cc6fac5880bc7007bca5659b3"><td class="memItemLeft" align="right" valign="top"><a id="a5597391cc6fac5880bc7007bca5659b3"></a>
D_CORE_API void&#160;</td><td class="memItemRight" valign="bottom"><b>Signal</b> ()</td></tr>
<tr class="separator:a5597391cc6fac5880bc7007bca5659b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b09b0eabe46699a5409d6f12d4c94cb"><td class="memItemLeft" align="right" valign="top"><a id="a3b09b0eabe46699a5409d6f12d4c94cb"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>ThreadFunction</b> ()=0</td></tr>
<tr class="separator:a3b09b0eabe46699a5409d6f12d4c94cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classd_semaphore"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classd_semaphore')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classd_semaphore.html">dSemaphore</a></td></tr>
<tr class="memitem:a99b67fa2708a5c6f0c195c486bf7c534 inherit pub_methods_classd_semaphore"><td class="memItemLeft" align="right" valign="top"><a id="a99b67fa2708a5c6f0c195c486bf7c534"></a>
D_CORE_API&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classd_semaphore.html#a99b67fa2708a5c6f0c195c486bf7c534">dSemaphore</a> ()</td></tr>
<tr class="memdesc:a99b67fa2708a5c6f0c195c486bf7c534 inherit pub_methods_classd_semaphore"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create and initialize counter to zero. <br /></td></tr>
<tr class="separator:a99b67fa2708a5c6f0c195c486bf7c534 inherit pub_methods_classd_semaphore"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ee195cf593fc23d354ed808d0664a33 inherit pub_methods_classd_semaphore"><td class="memItemLeft" align="right" valign="top"><a id="a5ee195cf593fc23d354ed808d0664a33"></a>
D_CORE_API&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classd_semaphore.html#a5ee195cf593fc23d354ed808d0664a33">~dSemaphore</a> ()</td></tr>
<tr class="memdesc:a5ee195cf593fc23d354ed808d0664a33 inherit pub_methods_classd_semaphore"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy semaphore. <br /></td></tr>
<tr class="separator:a5ee195cf593fc23d354ed808d0664a33 inherit pub_methods_classd_semaphore"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d74fe4e18a67a956732d4bfd89e818b inherit pub_methods_classd_semaphore"><td class="memItemLeft" align="right" valign="top"><a id="a2d74fe4e18a67a956732d4bfd89e818b"></a>
D_CORE_API dInt32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classd_semaphore.html#a2d74fe4e18a67a956732d4bfd89e818b">GetCount</a> () const</td></tr>
<tr class="memdesc:a2d74fe4e18a67a956732d4bfd89e818b inherit pub_methods_classd_semaphore"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns counter counter value. <br /></td></tr>
<tr class="separator:a2d74fe4e18a67a956732d4bfd89e818b inherit pub_methods_classd_semaphore"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f192f85fba7aac7e41b4b97945afcf3 inherit pub_methods_classd_semaphore"><td class="memItemLeft" align="right" valign="top">D_CORE_API bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classd_semaphore.html#a9f192f85fba7aac7e41b4b97945afcf3">Wait</a> ()</td></tr>
<tr class="memdesc:a9f192f85fba7aac7e41b4b97945afcf3 inherit pub_methods_classd_semaphore"><td class="mdescLeft">&#160;</td><td class="mdescRight">Synchronize with another threads.  <a href="classd_semaphore.html#a9f192f85fba7aac7e41b4b97945afcf3">More...</a><br /></td></tr>
<tr class="separator:a9f192f85fba7aac7e41b4b97945afcf3 inherit pub_methods_classd_semaphore"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a554f666efb275ed749c68e3330aff6e3 inherit pub_methods_classd_semaphore"><td class="memItemLeft" align="right" valign="top">D_CORE_API void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classd_semaphore.html#a554f666efb275ed749c68e3330aff6e3">Signal</a> ()</td></tr>
<tr class="memdesc:a554f666efb275ed749c68e3330aff6e3 inherit pub_methods_classd_semaphore"><td class="mdescLeft">&#160;</td><td class="mdescRight">Notify a thread blocked by member function Wait to wake and test m_counter again.  <a href="classd_semaphore.html#a554f666efb275ed749c68e3330aff6e3">More...</a><br /></td></tr>
<tr class="separator:a554f666efb275ed749c68e3330aff6e3 inherit pub_methods_classd_semaphore"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48c11416bcf5ed8dde3d827618424c52 inherit pub_methods_classd_semaphore"><td class="memItemLeft" align="right" valign="top"><a id="a48c11416bcf5ed8dde3d827618424c52"></a>
D_CORE_API void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classd_semaphore.html#a48c11416bcf5ed8dde3d827618424c52">Terminate</a> ()</td></tr>
<tr class="memdesc:a48c11416bcf5ed8dde3d827618424c52 inherit pub_methods_classd_semaphore"><td class="mdescLeft">&#160;</td><td class="mdescRight">Notify a waiting thread on member function Wait that is time to exit the thread loop. <br /></td></tr>
<tr class="separator:a48c11416bcf5ed8dde3d827618424c52 inherit pub_methods_classd_semaphore"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classd_atomic"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classd_atomic')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classd_atomic.html">dAtomic&lt; bool &gt;</a></td></tr>
<tr class="memitem:a0ba3b7cdc444bd16076eac36cd826652 inherit pub_methods_classd_atomic"><td class="memItemLeft" align="right" valign="top"><a id="a0ba3b7cdc444bd16076eac36cd826652"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>dAtomic</b> (bool val)</td></tr>
<tr class="separator:a0ba3b7cdc444bd16076eac36cd826652 inherit pub_methods_classd_atomic"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a56eeccc6250234a248b0625d26d040e2"><td class="memItemLeft" align="right" valign="top"><a id="a56eeccc6250234a248b0625d26d040e2"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>Release</b> ()</td></tr>
<tr class="separator:a56eeccc6250234a248b0625d26d040e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a9cccfd838a40604aa9124da3e1b46d5e"><td class="memItemLeft" align="right" valign="top"><a id="a9cccfd838a40604aa9124da3e1b46d5e"></a>
char&#160;</td><td class="memItemRight" valign="bottom"><b>m_name</b> [32]</td></tr>
<tr class="separator:a9cccfd838a40604aa9124da3e1b46d5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classd_thread.html">dThread</a></li>
    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
  </ul>
</div>
</body>
</html>
